/**
 * 
 */
package com.huniu.analysis.model;

/**
 * @author zandy (chenheng)
 *
 */
public class HtmlQuality implements Comparable<HtmlQuality> {
	private String link ;
	private String dictionary ;
	private int titleQuality ;
	private int metaQuality ;
	private int bodyQuality ;
	private int quality ;
	
	public int getQuality() {
		return quality;
	}
	public void setQuality(int quality) {
		this.quality = quality;
	}
	public String getLink() {
		return link;
	}
	public void setLink(String link) {
		this.link = link;
	}
	public String getDictionary() {
		return dictionary;
	}
	public void setDictionary(String dictionary) {
		this.dictionary = dictionary;
	}
	
	public int getTotalQuality() {
		return ( titleQuality + metaQuality + bodyQuality );
	}
	public void setTitleQuality(int titleQuality) {
		this.titleQuality = titleQuality;
	}
	public void setMetaQuality(int metaQuality) {
		this.metaQuality = metaQuality;
	}
	public void setBodyQuality(int bodyQuality) {
		this.bodyQuality = bodyQuality;
	}
	
	public int compareTo(HtmlQuality o) {
		return this.quality - o.quality ;
	}
}
